//
//  Activety2.m
//  UI_豆瓣项目
//
//  Created by dllo on 15/11/2.
//  Copyright (c) 2015年 关业达. All rights reserved.
//


//@property (nonatomic, copy)NSString *title;
//@property (nonatomic, copy)NSString *address;
//@property (nonatomic, copy)NSString *begin_time;
//@property (nonatomic, copy)NSString *end_time;
//@property (nonatomic, copy)NSString *category_name; //类型
//@property (nonatomic, copy)NSString *participant_count; // 参加
//@property (nonatomic, copy)NSString *wisher_count;// 感兴趣
//@property (nonatomic, copy)NSString *Aimage;
//@property (nonatomic, copy)NSString *movieId;
//@property (nonatomic, copy)NSString *name;
//@property (nonatomic, copy)NSString *content;



#import "Activety2.h"

@implementation Activety2

- (void)dealloc
{
    [_title release];
    [_address release];
    [_begin_time release];
    [_end_time release];
    [_category_name release];
    [_participant_count release];
    [super dealloc];
}

// 对model进行编码
- (void)encodeWithCoder:(NSCoder *)aCoder
{
    [aCoder encodeObject:self.title forKey:@"title"];
    [aCoder encodeObject:self.address forKey:@"address"];
    [aCoder encodeObject:self.begin_time forKey:@"begin_time"];
    [aCoder encodeObject:self.category_name forKey:@"category_name"];
    [aCoder encodeObject:self.wisher_count forKey:@"wisher_count"];
    [aCoder encodeObject:self.participant_count forKey:@"participant_count"];
    [aCoder encodeObject:self.Aimage forKey:@"Aimage"];
}

// 对model进行解码
- (instancetype)initWithCoder:(NSCoder *)aDecoder
{
    self = [super init];
    if (self) {
        self.title = [aDecoder decodeObjectForKey:@"title"];
        self.address = [aDecoder decodeObjectForKey:@"address"];
        self.begin_time = [aDecoder decodeObjectForKey:@"begin_time"];
        self.category_name = [aDecoder decodeObjectForKey:@"category_name"];
        self.wisher_count = [aDecoder decodeObjectForKey:@"wisher_count"];
        self.participant_count = [aDecoder decodeObjectForKey:@"participant_count"];
        self.Aimage = [aDecoder decodeObjectForKey:@"Aimage"];
    }
    return self;
}







@end
